﻿using System;

class Program {
    static void Main() {
        Console.WriteLine("请输入三个整数，用空格分隔：");
        string[] input = Console.ReadLine().Split();
        int x = int.Parse(input[0]);
        int y = int.Parse(input[1]);
        int z = int.Parse(input[2]);
        if (x > y)
        {
            int temp = x; x = y; y = temp;
        }

        if (x > z)
        {
            int temp = x; x = z; z = temp;
        }

        if (y > z)
        {
            int temp = y; y = z; z = temp;
        }
        
        Console.WriteLine($"从小到大排序：{x}, {y}, {z}");
    }
}

/*using System;

class Program {
    static void Main() {
        int sum = 0;
        Console.WriteLine("1-100中满足条件的数：");
        
        for (int i = 1; i <= 100; i++) {
            if (i % 7 != 0 && !i.ToString().Contains("7")) {
                Console.Write(i + " ");
                sum += i;
            }
        }
        
        Console.WriteLine($"\n和为：{sum}");  
    }
}





/*using System;

class Program {
    static void Main() {
        Console.WriteLine("九九乘法表：");
        for (int i = 1; i <= 9; i++) {
            for (int j = 1; j <= i; j++) {
                Console.Write($"{j}×{i}={i*j} ");
            }
            Console.WriteLine();
        }
    }
}




using System;

class Program {
    static void Main() {
        Console.WriteLine("1000以内的完数：");
        for (int n = 2; n < 1000; n++) {
            int sum = 0;
            for (int i = 1; i < n; i++) {
                if (n % i == 0) sum += i;
            }
            if (sum == n) Console.WriteLine(n);
            
        }
    }
}





using System;

class Program {
    static void Main() {
        Console.WriteLine("请输入一个正整数：");
        string input = Console.ReadLine();
        int num = int.Parse(input);
        
        int digitCount = input.Length;
        Console.WriteLine($"位数：{digitCount}位");
        
        Console.Write("逆序数字：");
        for (int i = input.Length - 1; i >= 0; i--) {
            Console.Write(input[i]);
        }
    }
}

using System;

class Program {
    static void Main() {
        Console.WriteLine("请输入菱形行数（奇数）：");
        int n = int.Parse(Console.ReadLine());
        
        if (n % 2 == 0) n++;
        
        int half = (n + 1) / 2;  
        
        for (int i = 1; i <= half; i++) {
            for (int j = 1; j <= half - i; j++) {
                Console.Write(" ");
            }
            for (int k = 1; k <= 2 * i - 1; k++) {
                Console.Write("*");
            }
            Console.WriteLine();
        }
    
        for (int i = half - 1; i >= 1; i--) {
            for (int j = 1; j <= half - i; j++) {
                Console.Write(" ");
            }
            for (int k = 1; k <= 2 * i - 1; k++) {
                Console.Write("*");
            }
            Console.WriteLine();
        }
    }
}*/
